<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + " ://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML>
<html>

<head>
    <base href="<%=basePath%>">
    <meta charset="UTF-8"/>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <link rel="stylesheet" href="<%=path%>/css/mui.css">
    <script src="<%=path%>/js/jquery.min.js"></script>
    <script src="<%=path%>/js/utils.js"></script>
    <script src="<%=path%>/js/qingjs.js"></script>
    <script src="<%=path%>/js/tongxun.js"></script>
    <script type="text/javascript">
        var local = window.location;
        var contextPath = local.pathname.split("/")[1];
        var basePath = local.protocol + "//" + local.host + "/" + contextPath;
        $(function () {
            // 设置jQuery Ajax全局的参数
            $.ajaxSetup({
                type: "POST",
                //ajax 全局异常处理
                error: function (jqXHR, textStatus, errorThrown) {
                    //统一关闭遮罩层
                    $('#loading').modal('hide');

                    switch (jqXHR.status) {
                        case(500):
                            alert("抱歉：服务器系统发生内部错误，请联系管理员！");
                            break;
                        case(401):
                            //alert("登录过期，请重新登录，谢谢");
                            document.location.href = basePath + '/gac/logout.jsp';
                            break;
                        case(403):
                            alert("无权限执行此操作");
                            break;
                        case(408):
                            alert("抱歉：请求超时");
                            break;
                        default:
                            alert("抱歉：服务器系统发生未知错误，请联系管理员！");
                    }
                },
                success: function (data) {
                    alert("操作成功");
                }
            });
        });
        //获取个人信息
        var _ticket = getUrlParam('ticket');

        //获取url中的参数
        function getUrlParam(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substr(1).match(reg); //匹配目标参数
            if (r != null) return unescape(r[2]);
            return null; //返回参数值
        }

        //判断是否运行于云之家App中
        function isYzjApp() {
            return navigator.userAgent.match(/Qing\/.*;(iOS|iPhone|Android).*/) ? true : false;
        }
    </script>
    <style>
        .tabs {
            position: fixed;
            bottom: 0px;
            left: 0;
            width: 100%;
            height: 49px;
            background: #fff;
            border-top: 1px solid #d2d2d2;
        }

        .tab {
            display: inline-block;
            width: 32%;
            text-align: center;
            color: #d1cbbb;
        }

        .tab span {
            display: block;
            font-size: 32px;
            margin-bottom: -3.5px;
        }

        .tabText {
            font-size: 14px;
            color: #d1cbbb;
        }

        div.tabActive {
            color: #0080ff;
        }

        .tab div.textActive {
            color: #0080ff;
        }

        .tab .index_tab {
            width: 100%;
            font-size: 48px;
            position: relative;
            top: -5px;
        }

        .tabtext_out {
            display: none;
        }

        .clearfix:before {
            content: '';
            display: block;
            clear: both;
        }

        .mui-switch-blue.mui-active {
            border: 2px solid #0080ff;
            background-color: #0080ff;
        }
    </style>
